﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class CardCenter_BuyCardOption : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    //进入下一步
    protected void btn_Agree_Click(object sender, ImageClickEventArgs e)
    {
        string selectedValue = this.RadioBtnBuyCardOpention.SelectedValue;
        if (!String.IsNullOrEmpty(selectedValue))
        {
            //购卡后给咨询卡充值
            if (selectedValue.Equals("1"))
            {
                Session["BuyConfig"] = "1";
            }
            //购卡后给注册帐户充值
            else if (selectedValue.Equals("2"))
            {
                Session["BuyConfig"] = "2";
            }
             //购卡后，通过短信获取卡号和密码
            else{
                Session["BuyConfig"] = "3";
            }
            Response.Redirect("OnlinePurchaseCardStep1.aspx");
        }
    }


    //返回上一步
    protected void return_Click(object sender, ImageClickEventArgs e)
    {
        Response.Redirect("Cardagreement.aspx");
    }
}
